package com.zsoft.domain;

import java.util.Date;

/**
 * 评论功能表
 * @author zuoshuaiok@gmail.com
 * local-search
 * 2013-4-9
 */
public class CommentDomain {

	private Long id;
	// 发帖子用户id
	private Long userId;
	// 评论者id
	private Long commenterId;
	// 评论者ip
	private String commenterIp;
	// 评论的帖子id
	private Long topicId;
	// 评论内容
	private String content;
	private Date gmtCreate;
	private Date gmtUpdate;
	private Integer isValid;

	public Integer getIsValid() {
		return isValid;
	}

	public void setIsValid(Integer isValid) {
		this.isValid = isValid;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getCommenterId() {
		return commenterId;
	}

	public void setCommenterId(Long commenterId) {
		this.commenterId = commenterId;
	}

	public String getCommenterIp() {
		return commenterIp;
	}

	public void setCommenterIp(String commenterIp) {
		this.commenterIp = commenterIp;
	}

	public Long getTopicId() {
		return topicId;
	}

	public void setTopicId(Long topicId) {
		this.topicId = topicId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtUpdate() {
		return gmtUpdate;
	}

	public void setGmtUpdate(Date gmtUpdate) {
		this.gmtUpdate = gmtUpdate;
	}

	@Override
	public String toString() {
		return "CommentDomain [id=" + id + ", userId=" + userId + ", commenterId=" + commenterId + ", commenterIp="
				+ commenterIp + ", topicId=" + topicId + ", content=" + content + ", gmtCreate=" + gmtCreate
				+ ", gmtUpdate=" + gmtUpdate + "]";
	}
}
